package com.zdya.combatdocuments.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.api.R;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zdya.combatdocuments.entity.Authorization;
import com.zdya.combatdocuments.entity.vo.AuthorizationVo;
import com.zdya.combatdocuments.entity.vo.ResultVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface AuthorizationService extends IService<Authorization> {
    ResultVo<IPage<Authorization>> getAuthorPage(Integer pageNo, Integer pageSize,Authorization authorizationEntity);

    ResultVo saveAuthor(AuthorizationVo authorizationEntity);

    ResultVo applyAuthor(String primaryIp,AuthorizationVo authorizationVo);

    ResultVo acceptAuthorFile(MultipartFile authorFile, String primaryIp, String username) throws IOException;

    ResultVo acceptAuthor(AuthorizationVo authorizationVo);

    ResultVo approvalAuthor(Long id);

    ResultVo getAuthorizations(Integer pageNo, Integer pageSize,Authorization authorizationEntity);


}
